/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Chinook</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S14999 (C-0-T14914-S14915-S14916-S14999-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianChinook()
 * @model extendedMetaData="name='RaceAmericanIndianChinook'"
 * @generated
 */
public enum RaceAmericanIndianChinook implements Enumerator {
	/**
	 * The '<em><b>11148</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11148_VALUE
	 * @generated
	 * @ordered
	 */
	_11148(0, "_11148", "1114-8"),

	/**
	 * The '<em><b>11155</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11155_VALUE
	 * @generated
	 * @ordered
	 */
	_11155(1, "_11155", "1115-5"),

	/**
	 * The '<em><b>11163</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11163_VALUE
	 * @generated
	 * @ordered
	 */
	_11163(2, "_11163", "1116-3"),

	/**
	 * The '<em><b>11171</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11171_VALUE
	 * @generated
	 * @ordered
	 */
	_11171(3, "_11171", "1117-1"),

	/**
	 * The '<em><b>11189</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11189_VALUE
	 * @generated
	 * @ordered
	 */
	_11189(4, "_11189", "1118-9"),

	/**
	 * The '<em><b>11197</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11197_VALUE
	 * @generated
	 * @ordered
	 */
	_11197(5, "_11197", "1119-7"),

	/**
	 * The '<em><b>11205</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11205_VALUE
	 * @generated
	 * @ordered
	 */
	_11205(6, "_11205", "1120-5"),

	/**
	 * The '<em><b>11213</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_11213_VALUE
	 * @generated
	 * @ordered
	 */
	_11213(7, "_11213", "1121-3");

	/**
	 * The '<em><b>11148</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11148</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11148
	 * @model literal="1114-8"
	 * @generated
	 * @ordered
	 */
	public static final int _11148_VALUE = 0;

	/**
	 * The '<em><b>11155</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11155</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11155
	 * @model literal="1115-5"
	 * @generated
	 * @ordered
	 */
	public static final int _11155_VALUE = 1;

	/**
	 * The '<em><b>11163</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11163</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11163
	 * @model literal="1116-3"
	 * @generated
	 * @ordered
	 */
	public static final int _11163_VALUE = 2;

	/**
	 * The '<em><b>11171</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11171</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11171
	 * @model literal="1117-1"
	 * @generated
	 * @ordered
	 */
	public static final int _11171_VALUE = 3;

	/**
	 * The '<em><b>11189</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11189</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11189
	 * @model literal="1118-9"
	 * @generated
	 * @ordered
	 */
	public static final int _11189_VALUE = 4;

	/**
	 * The '<em><b>11197</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11197</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11197
	 * @model literal="1119-7"
	 * @generated
	 * @ordered
	 */
	public static final int _11197_VALUE = 5;

	/**
	 * The '<em><b>11205</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11205</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11205
	 * @model literal="1120-5"
	 * @generated
	 * @ordered
	 */
	public static final int _11205_VALUE = 6;

	/**
	 * The '<em><b>11213</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>11213</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_11213
	 * @model literal="1121-3"
	 * @generated
	 * @ordered
	 */
	public static final int _11213_VALUE = 7;

	/**
	 * An array of all the '<em><b>Race American Indian Chinook</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianChinook[] VALUES_ARRAY =
		new RaceAmericanIndianChinook[] {
			_11148,
			_11155,
			_11163,
			_11171,
			_11189,
			_11197,
			_11205,
			_11213,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Chinook</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianChinook> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Chinook</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianChinook get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianChinook result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Chinook</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianChinook getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianChinook result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Chinook</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianChinook get(int value) {
		switch (value) {
			case _11148_VALUE: return _11148;
			case _11155_VALUE: return _11155;
			case _11163_VALUE: return _11163;
			case _11171_VALUE: return _11171;
			case _11189_VALUE: return _11189;
			case _11197_VALUE: return _11197;
			case _11205_VALUE: return _11205;
			case _11213_VALUE: return _11213;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianChinook(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianChinook
